package no.sachmuld.methodcombination.examples.reflection.clossimplestyle.resource;

/**
 *
 */
public class ResourceX extends Resource {

        private int fd;

        ResourceX() {
            fd = 1;
            with(new ResourceBehaviour() {

                @Override
                public void close() {
                    System.out.println("closing resource x with fd=" + fd);
                }

            });

        }
    }

